package main


// 并发的循环

import (
	"fmt"
	"time"
	"math/rand"
)

func longWorker() int {
	// 随机 sleep 1 - 5 s
	sleepSecond := rand.Intn(5) - 1
	time.Sleep(time.Second)
	return sleepSecond
}

func main() {
	for i := 1; i <= 5; i++ {
		go fmt.Println(longWorker())
	}
}
